package com.ccp.dev.system.model;

import com.ccp.dev.core.basic.model.BaseModel;

/**
 * 数据字典 Model对象
 *
 * @author zhaowj
 */
public class Dictionary extends BaseModel {


    /**
     * dicId
     */
    protected String dicId;

    /**
     * 分类ID
     */
    protected String typeId;

    /**
     * 项Key
     */
    protected String itemKey;

    /**
     * 项名
     */
    protected String itemName;

    /**
     * 项值
     */
    protected String itemValue;

    /**
     * 描述
     */
    protected String descp;

    /**
     * 序号
     */
    protected Long sn;

    /**
     * nodePath
     */
    protected String nodePath;

    /**
     * parentId
     */
    protected String parentId;

    /**
     * 类型(0平铺,1树形)
     */
    protected Integer type = SHOWTYPE_LIST;

    protected String open = "true";

    public static final Integer SHOWTYPE_LIST = 0;

    public static final Integer SHOWTYPE_TREELIST = 1;

    protected String typeName;

    /**
     * 是否根节点(1:根节点;2:非根节点)
     */
    private int isRoot;

    public static final Integer ISROOT_YES = 1;

    public int getIsRoot() {
        return isRoot;
    }

    public void setIsRoot(int isRoot) {
        this.isRoot = isRoot;
    }

    public String getDicId() {
        return dicId;
    }

    public void setDicId(String dicId) {
        this.dicId = dicId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getItemKey() {
        return itemKey;
    }

    public void setItemKey(String itemKey) {
        this.itemKey = itemKey;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

    public String getDescp() {
        return descp;
    }

    public void setDescp(String descp) {
        this.descp = descp;
    }

    public Long getSn() {
        return sn;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public String getNodePath() {
        return nodePath;
    }

    public void setNodePath(String nodePath) {
        this.nodePath = nodePath;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOpen() {
        return open;
    }

    public void setOpen(String open) {
        this.open = open;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}